package com.itheima.mycharset;

import java.io.FileReader;
import java.io.IOException;

public class CharSetDemo2 {
    public static void main(String[] args) throws IOException {

        FileReader fr = new FileReader("day28-code\\b.txt");

        int ch;

        while ((ch=fr.read())!=-1){
            System.out.print((char) (ch));
        }

        fr.close();
    }
}
